package com.harisucici.app.utils;

import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.module_base_core.RouteUtils.ChatModuleRoute;
import com.example.module_base_core.RouteUtils.HomeModuleRoute;
import com.example.module_base_core.RouteUtils.PersonalModuleRoute;

/**
 * @Author : 作者 马坤
 * @Time : On 2020/11/30 18:11
 * @Page: On com.harisucici.app.utils
 * @Description : FragmentUtils
 */
public class FragmentUtils {

    public static Fragment getHomeFragment() {
        Fragment fragment = (Fragment) ARouter.getInstance().build(HomeModuleRoute.Home_Fragment_Main).navigation();
        return fragment;
    }

    public static Fragment getChatFragment() {
        Fragment fragment = (Fragment) ARouter.getInstance().build(ChatModuleRoute.Chat_Fragment_Main).navigation();
        return fragment;
    }


    public static Fragment getMeFragment() {
        Fragment fragment = (Fragment) ARouter.getInstance().build(PersonalModuleRoute.Me_Fragment).navigation();
        return fragment;
    }


}
